<template>
  <div class="review_page">

    <!-- 导航 开始 -->
    <nav-bar title="我的点评"></nav-bar>
    <!-- 导航 end -->

    <!-- 点评列表 开始 -->
    <div class="list_box">
      <template v-if="list && list.length">
        <UserEvaluate class="review_cell" v-for="(item, index) in list" :key="index" :info="item"></UserEvaluate>
      </template>
      <no-data v-else></no-data>
    </div>
    <!-- 点评列表 end -->

  </div>
</template>
<script>
import UserEvaluate from "@/components/evaluate/index.vue";
import { GET_PERSONAL_MYCOMMENT } from "@/http/interface";
export default {
  components: {
    UserEvaluate,
  },
  data() {
    return {
      list: [],
    };
  },
  async asyncData({ $cookies, $axios }) {
    let res = await $axios.get(GET_PERSONAL_MYCOMMENT);
    let list = res.data || [];
    console.log(res);
    return { list };
  },
};
</script>
<style lang="less" scoped>
@import "/assets/styles/my/review.less";
</style>